<?php

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;

?>

<div class="member-search">

    <?php $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
        'layout' => 'inline',
    ]); ?>

    <?= $form->field($model, 'phone')->textInput(['placeholder' => '电话号码']) ?>

    <?= $form->field($model, 'name')->textInput(['placeholder' => '姓名']) ?>

    <?= $form->field($model, 'group_num')->textInput(['placeholder' => '团号']) ?>

    <?= $form->field($model, 'role')->dropdownList(Yii::$app->params['role'], ['prompt'=>'选择角色']) ?>

    <div class="form-group">
        <?= Html::submitButton('查询', ['class' => 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
